package cn.huiyunche.base.service.interfaces;

import cn.huiyunche.base.service.model.TmsOrder;

import java.util.Date;

/**
 * The interface Tms order service.
 *
 * @FileName: cn.huiyunche.base.service.interfaces
 * @Description: TMS原订单
 * @author: Aaron
 * @date: 2016 /11/2 上午9:43
 */
public interface TmsOrderService {

    /**
     * Add for list.
     *
     * @param tmsOrder the tms order
     * @return the long
     */
    Long add(TmsOrder tmsOrder);

    /**
     * Gets tms order by ilineid.
     *
     * @param ilineid the ilineid
     * @return the tms order by ilineid
     */
    TmsOrder getTmsOrderByIlineid(Long ilineid);

    /**
     * Update confirm cost.
     *
     * @param orderId      the id
     * @param confirmCost  the ordercost
     * @param recoveryTime the recovery time
     */
    void updateConfirmCost(Long orderId, String confirmCost, Date recoveryTime);

    /**
     * Select by primary key tms order.
     *
     * @param id the id
     * @return the tms order
     */
    TmsOrder selectByPrimaryKey(Long id);
}
